package com.gin.kotlin.gf2gamecommunity.pagingsource

import com.gin.kotlin.form.SearchForm
import com.gin.kotlin.gf2gamecommunity.app.App
import com.gin.kotlin.response.ListData
import com.gin.kotlin.response.search.FoundUser

class SearchUserPagingSource(private val keyword: String) : AbstractListDataPagingSource<FoundUser, ListData<FoundUser>>() {
    override fun request(page: Int, size: Int) =
        App.INSTANCE.api.searchApi.getSearchUser(SearchForm(2, page, size, keyword))

    companion object {
        private val TAG = SearchUserPagingSource::class.java.simpleName
    }
}